package freedom.sample.service.impl;

import java.util.Date;

import javax.jws.WebService;

import freedom.sample.model.User;
import freedom.sample.service.HelloService;

@WebService(endpointInterface="freedom.sample.service.HelloService")
public class HelloServiceImpl implements HelloService {

	@Override
	public String sayHi(String name) {
		System.out.println(new Date() + " " + name);
		return "Hi, " + name;
	}

	@Override
	public User queryUser(String userId) {
		System.out.println(new Date() + " 访问queryUser userId " + userId);
		User u = new User("1", "小明");
		return u;
	}

}
